<%@ page import = "java.util.ArrayList" %>
<%@ page import = "com.mbbcpa.util.Constants" %>
<%@ page import = "com.mbbcpa.security.dao.*" %>

<%

ArrayList secGroupAccessList = (ArrayList) session.getAttribute(Constants.LOGON_ACCESS_LIST);
SecUserDao oSecUserDao = (SecUserDao) session.getAttribute(Constants.LOGGED_USER);
String sUserName = oSecUserDao.getUserName();
String lastLogonDateTime = (String) session.getAttribute(Constants.LAST_LOGON_DATETIME);

String selected = "home";
int iManualCP = 0;	//MAN000
int iSecMan = 0;	//SEC000
int iFAQ = 0;		//FAQ000
int iExempt = 0;	//EXE000
int iChangePW = 0;	//CPW000
int iRefMan = 0;	//RFM000
int iUserGuid = 0;	//USG000


for(int i=0;i<secGroupAccessList.size();i++){
	SecAccessDao secaccessDao = (SecAccessDao)secGroupAccessList.get(i);
	String strModuleCode  = secaccessDao.getModuleCode();
	if(strModuleCode.equals("MAN000"))
		iManualCP = 1;
	if(strModuleCode.equals("SEC000"))
		iSecMan = 1;
	if(strModuleCode.equals("FAQ000"))
		iFAQ = 1;
	if(strModuleCode.equals("EXE000"))
		iExempt = 1;
	if(strModuleCode.equals("CPW000"))
		iChangePW = 1;
	if(strModuleCode.equals("RFM000"))
		iRefMan = 1;
	if(strModuleCode.equals("USG000"))
		iUserGuid = 1;
}
%>
<link href="resource/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript">
	    window.history.forward();
	    function noBack() { window.history.forward(); }
	</script>
<style type="text/css"></style></head>

<body class="home" onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
	<a name="top"></a>
	

<!-- Header -->
<%@ include file="Header.jsp" %>	
<!-- End Header -->

<form name="HomeForm" method="post">
	<div id="bgWrapper">
		<div id="container">

			<div id="titleBar">
				<ul class="topBar">
					<li class="goBackBt"><a href=""></a></li>
					<li>
					  <h1>Home</h1></li>
				</ul>
			</div>

			<div id="fullcontent">
				

<!-- Root Navigation -->
<%@ include file="RootNavigation.jsp" %>	
<!-- End Root Navigation -->


<div id="contentRightIn">
	<table border="0" cellpadding="0" cellspacing="0" width="600">
		<tbody><tr>
			<td>
				<div style="width:auto;height:auto;padding:12px 20px;margin:0 0 5px 0;display:block;font-size:20px;font-weight:bold;color:#ffb606;">
					What to do:
				</div>
				
					<tr>
                    <td width="50%"> <div class="listingBox" <%=iManualCP==1?"":"style='display:none'"%>>
							<a href="<%=request.getContextPath()%>/ShowManualCPHome.do?dispatch=init" onclick="overlay();">
							<h3>CP Inquiry</h3><br />This module includes CP Inquiry & CP Status search.</a>
                            </div></td>
                    <td width="50%">  <div class="listingBox" <%=iChangePW==1?"":"style='display:none'"%>>
					  <a href="<%=request.getContextPath()%>/ChangePassword.do?dispatch=init" onclick="overlay();">
					  <h3>Change Password</h3>
							<br />
					  Allows user to change password.<br />
					  <br />
							</a>
						</div></td>
                    </tr>
                    <tr>
                    <td width="50%"><div class="listingBox" <%=iSecMan==1?"":"style='display:none'"%>>
							<a href="#" onclick="overlay();">
							<h3>Security Management </h3>
							<br />This module allows user to configure modules, groups, access rights and users creation. </a>
						</div></td>
                    <td width="50%"> <div class="listingBox" <%=iRefMan==1?"":"style='display:none'"%>>
					  <a href="" onclick="overlay();">
					  <h3>Reference Management</h3>
							<br />
					  Allows user to setup system reference values or reference listing.<br />
					  <br />
							</a>
						</div></td>
                    </tr>
                    <tr>
                    <td width="50%"> <div class="listingBox" <%=iFAQ==1?"":"style='display:none'"%>>
							<a href="" onclick="overlay();">
							<h3>FAQs </h3>
							<br />Allows user to view the common asked questions</a>
						</div></td>
                    <td width="50%"> <div class="listingBox" <%=iUserGuid==1?"":"style='display:none'"%>>
							<a href="" onclick="overlay();">
							<h3>User Guide</h3>
							<br />Provide user to download the user guide document.</a>
						</div> </td>
                    </tr>
                    <tr>
                    <td width="50%"><div class="listingBox" <%=iExempt==1?"":"style='display:none'"%>>
							<a href="" onclick="overlay();">
							<h3>Exemption Listing</h3>
							<br />Allows user to check the CPA_INQ request status.</a>
						</div></td>
                    <td width="50%"> </td>
                    </tr>
						
		</tr>
	</tbody></table>
</div>
</div>
<!-- Footer -->
<%@ include file="Footer.jsp" %>	
<!-- End Footer -->

		</div>
	</div>

</form>



